package com.company.dao;

import com.company.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author fu xiao liu
 * @date 2021-08-10 17:03
 */
public interface OrderSettingDao {
    /**
     * 添加
     * @param orderSetting
     */
    void add(OrderSetting orderSetting);

    /**
     * 编辑
     * @param orderSetting
     */
    void editNumberByOrderDate(OrderSetting orderSetting);

    /**
     * 查找日期是否存在
     * @param orderDate
     * @return
     */
    long findCountByOrderDate(Date orderDate);

    /**
     * 查找。根据月份
     * @param map
     * @return
     */
    List<OrderSetting> getOrderSettingByMonth(Map map);


    /**
     * 根据预约日期查询预约设置信息
     * @param orderDate
     * @return
     */
    OrderSetting findByOrderDate(Date orderDate);

    void editReservationsByOrderDate(OrderSetting orderSetting);
}
